
<%@page import="dal.loadUserDoc"%>
<%@page import="entity.user"%>
<%@page import="java.util.Vector"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin Page</title>
    </head>
    <body>
        <h1>User Details</h1>
        <%
            Vector<user> users = new loadUserDoc().getUsers();
        %>
        <table border="1">
            <tr>
                <td>Username</td>
                <td>Password</td>
                <td>FullName</td>
                <td>Role</td>
            </tr>
            <%
                for(user u : users){
            %>
                <tr>
                    <td><%=u.getUsername()%></td>
                    <td><%=u.getPassword()%></td>
                    <td><%=u.getFullname()%></td>
                    <td><%=u.getRole()%></td>
                </tr>
             <%
                }
             %>
        </table>
    </body>
</html>
